package jsi.spring;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class SomeAspect {
	
//	@Pointcut("execution(* *.write*(..))")
//	public void writingMethods() {
//	}
	int i = 0;
	@Pointcut("within(jsi..*)")
	public void writingMethods() {
		i++;
		System.out.println("wm");
	}

	
	@org.aspectj.lang.annotation.Before("writingMethods()")
	public void doLog() {
		i++;
		System.out.println("Pisanie " + i);
	}
}
